﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.ComponentModel.Composition.Hosting;

using Cinch;

namespace Anata.Client
{
    /// <summary>
    /// Main hosting Window. Has a TabControl which is acting as the Workspace host
    /// </summary>
    public partial class MainWindow : Window
    {
        #region Ctor
        public MainWindow()
        {
            InitializeComponent();
        }
        #endregion

        public void ExpandFirstColumn()
        {
            mainGrid.ColumnDefinitions[0].Width = new GridLength(1, GridUnitType.Star);
            mainGrid.ColumnDefinitions[1].Width = new GridLength(1);
            mainGrid.ColumnDefinitions[2].Width = new GridLength(1);
        }

        public void CollapseFirstColumn()
        {
            mainGrid.ColumnDefinitions[0].Width = new GridLength(1, GridUnitType.Star);
            mainGrid.ColumnDefinitions[1].Width = new GridLength(1, GridUnitType.Star);
            mainGrid.ColumnDefinitions[2].Width = new GridLength(1, GridUnitType.Star);
        }
    }
}
